package com.cie2.janji.pages.users;

import java.util.List;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.cie2.janji.base.CieUserPage;
import com.cie2.janji.entities.Article;
import com.cie2.janji.services.ArticleService;

public class ArticleList extends CieUserPage {

	@Property
	private Article article;
	
	//services
	@Inject
	private ArticleService articleService;
	
	public List getArticles() {
		return articleService.getAll();
	}
}
